package com.qyc.controller;

import com.qyc.service.BatchService;
import com.qyc.utils.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @className: BatchController
 * @Description: 批次管理相关Controller层
 * @author: qinyc
 * @date: 2023/6/26 13:47
 * @version: v1.0
 */
@Api(tags = "批次管理")
@RestController
@RequestMapping("/batch")
public class BatchController {
    //注入批次Service层对象
    @Autowired
    private BatchService batchService;
    
    /**
     * @Author qinyc
     * @Description  查询所有批次信息
     * @version: v1.0
     * @Date 13:49 2023/6/26
     **/
    @ApiOperation("查询所有批次信息")
    @GetMapping("/queryAll")
    public ResponseResult queryAll(){
        return batchService.queryAll();
    }
}
